//
//  HJPasswordCodeView.h
//  KaiChat
//
//  Created by lx on 2023/10/17.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


@class HJPasswordCodeView;

@protocol HJPasswordCodeViewDelegate <NSObject>

@optional

- (void)textDidChange:(HJPasswordCodeView *)passwordCodeView text:(NSString *)text;

@end


@interface HJPasswordCodeView : UIView

- (instancetype)initWithCount:(NSInteger)count margin:(CGFloat)margin;
- (void)reset;


@property (nonatomic, assign) BOOL secureTextEntry;
@property (nonatomic, strong, readonly) UITextField *textField;
@property (nonatomic, weak) id <HJPasswordCodeViewDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
